<script>
  let html = "<p>这是个html代码</p>";
</script>

<div contenteditable="true" bind:innerHTML={html}></div>
<pre>{html}</pre>

<style>
  [contenteditable] {
    padding: 0.5em;
    border: 1px solid #3c3a3a;
    border-radius: 4px;
  }
</style>
